package com.ruihang.generalibrary.beans;

import android.support.annotation.DrawableRes;
import android.support.annotation.StringRes;

/**
 * Created by Ly on 2016/10/27.
 */
public class ShareItem {
    private String itemName;
    @StringRes
    private int itemNameRes;
    @DrawableRes
    private int iconRes;
    /**标记，可用于获取Platform*/
    private String tag;

    public ShareItem(int iconRes, int itemNameRes) {
        this.iconRes = iconRes;
        this.itemNameRes = itemNameRes;
    }

    public ShareItem(int iconRes, String itemName) {
        this.itemName = itemName;
        this.iconRes = iconRes;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public int getItemNameRes() {
        return itemNameRes;
    }

    public void setItemNameRes(int itemNameRes) {
        this.itemNameRes = itemNameRes;
    }

    @DrawableRes
    public int getIconRes() {
        return iconRes;
    }

    public void setIconRes(int iconRes) {
        this.iconRes = iconRes;
    }

    public String getTag() {
        return tag;
    }

    public ShareItem setTag(String tag) {
        this.tag = tag;
        return this;
    }

    @Override
    public String toString() {
        return "ShareItem{" +
                "itemName='" + itemName + '\'' +
                ", itemNameRes=" + itemNameRes +
                ", iconRes=" + iconRes +
                ", tag='" + tag + '\'' +
                '}';
    }
}
